package org.pdai.basic;

public class IntegerExample {
    public static void main(String[] args) {
        Integer x = new Integer(123);
        Integer y = Integer.valueOf(123);
        System.out.println(x == y);

        Integer z = Integer.valueOf(123);
        Integer k = Integer.valueOf(123);
        System.out.println(z == k);

        // boolean values true and false
        // all byte values short values
        // between -128 and 127
        // int values between -128 and 127
        // char in the range \u0000 to \u007F

        // 在缓冲池之外：
        Integer m = 323;
        Integer n = 323;
        System.out.println(m == n); // false
    }
}
